# 替换字符串中某些字符
'hasaki'.replace('ha','ka')
>>>kasaki